/*Write declarations for the following :
(1) a pointer to a character; (2) an array of 5 intergers; (3) a refrence to an array of 5 integers;
(4) a pointer to an array of character strings;   (5) a pointer to a pointer of a character;
(6) a constant integer;   (7) a pointer to a constant integer;  (8) a constant pointer to an integer.
Initialize each one.  */
#include<iostream>
using namespace std;

int main(int argc, char const *argv[])
{
    
    char ch = '#';
    char* charPTR=&ch;              //1)a pointer to a character
    int ints[5]={1,2,3,4,5};        //2)an array of 5 intergers
    int(&intsREF)[5]=ints;          //3)a refrence to an array of 5 integers,reference must be initialized

    string strs[2]={"hello","world"};
    string(*strsPTR)=strs;          //4)a pointer to an array of character strings

    char** charPTRPTR=&charPTR;     //5)a pointer to a pointer of a character
    
    int ii=123;
    const int CONST_INT=666;                        //6)a constant integer,a const must be initialized
    const int* PTR_TO_CONST_INT = &CONST_INT;       //7)a pointer to a constant integer
    int* const CONST_PTR_TO_INT = &ii;              //8)a constant pointer to an integer

    return 0;
}
